
import Vue from 'vue'
import Router from 'vue-router'

import Home from '../container/home'
import Shop from '../container/shop'
import Cart from '../container/cart'
import Mine from '../container/mine'
import Details from  '../container/details'
import Notfind from '../container/notfind'
import Login from '../container/Login'
import Product from '../container/Product'
import Storecollection from '../container/Storecollection'
import Order from '../container/Order'
import integral from '../container/integral'
Vue.use(Router)

export default new Router({
    linkActiveClass: "active",
    routes: [{
        path: '/',
        redirect: '/login'
    }, 
    {
        name: 'Home',
        path: '/home',
        component: Home
    }, 
    {
        name: 'Shop',
        path: '/shop',
        component: Shop
    }, 
    {
        name: 'Cart',
        path: '/cart',
        component: Cart
    }, 
    {
        name: 'Mine',
        path: '/mine',
        component: Mine
    },
    {
        name: 'Details',
        path: '/details',
        component: Details
    },
    {
        name: 'Login',
        path: '/login',
        component: Login
    },
    {
        name: 'Product',
        path: '/product',
        component: Product
    },
    {
        name: 'Storecollection',
        path: '/store',
        component: Storecollection
    },
    {
        name: 'Order',
        path: '/order',
        component: Order,
    }, 
    {
        name: 'integral',
        path: '/integral',
        component: integral,
    }, 
    {
        name: 'Notfind',
        path: '*',
        component: Notfind
    }]
})